#include<iostream>
#include<string>
#include<map>
using namespace std;
typedef pair<int, int> PII;
const int N = 2e5 + 10;
int n, m, h, k;
string s;
map<PII, int>mp;
int main()
{
	cin >> n >> m >> h >> k;
	bool flag = 0;
	int x = 0, y = 0;
	cin >> s;
	while (m--) {
		int x, y;
		cin >> x >> y;
		mp[{x, y}] ++;
	}
	int ans = 0;
	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'R')x++;
		else if (s[i] == 'L')x--;
		else if (s[i] == 'U')y++;
		else y--;
		h--;
		if (h < 0) {
			flag = 1;
			break;
		}
		//cout << "x==" << x << endl;
		//cout << "y==" << y << endl;
		//cout << "h==" << h << endl;
		if (mp[{x, y}] && h < k) {
			h = k;
			mp[{x, y}] = 0;
		}
	}
	if (flag)cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;
}